package com.cj.dubbo.localRegist;

import java.util.HashMap;
import java.util.Map;

/**
 * @author chan
 * @dateTime 2022/9/28  14:23:38
 * 本地注册中心
 */
public class LocalRegister {
    private static Map<String, Class> map = new HashMap<String, Class>();

    public static void register(String interfaceName, Class implClass) {
        map.put(interfaceName, implClass);
    }

    public static Class get(String interfaceName) {
        return map.get(interfaceName);
    }

}
